# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=grass
pkgver=0.12.3
pkgrel=1
pkgdesc="Sass compiler written purely in Rust"
url="https://github.com/connorskees/grass"
arch="all"
license="MIT"
makedepends="cargo cargo-auditable"
source="
	https://github.com/connorskees/grass/archive/v$pkgver/grass-v$pkgver.tar.gz
	"

prepare() {
	default_prepare

	cargo fetch --locked --target="$CTARGET"
}

build() {
	cargo auditable build -p grass --release --frozen
}

check() {
	cargo test -p grass --tests
}

package() {
	install -Dm755 target/release/grass "$pkgdir"/usr/bin/grass
}

sha512sums="
ea70ce7627059cd567052edcd0c0259f9f7b5db38d66211ab4c3310470ba27cf19d828731930ae56ec506fe58d5acbc2e7b53b1aef9ae274dea51e3f78efaa23  grass-v0.12.3.tar.gz
"
